package corpus;

public class WordPolarity {
	private String emotion;
	private boolean strong;
	private boolean stemmed;
	private boolean priorpolarity;

	public WordPolarity() {
	}

	public WordPolarity(String emotion, boolean strong, boolean stemmed,
			boolean priorPolarity) {
		super();
		this.emotion = emotion;
		this.strong = strong;
		this.stemmed = stemmed;
		this.priorpolarity = priorPolarity;
	}

	public String getEmotion() {
		return emotion;
	}
	
	public boolean isNeutral() {
		return emotion.equals("neu");
	}
	
	public boolean isPositive() {
		return emotion.equals("pos");
	}
	
	public boolean isNegative() {
		return emotion.equals("neg");
	}

	public void setEmotion(String emotion) {
		this.emotion = emotion;
	}

	public boolean isStrong() {
		return strong;
	}

	public void setStrong(boolean strong) {
		this.strong = strong;
	}

	public boolean isStemmed() {
		return stemmed;
	}

	public void setStemmed(boolean stemmed) {
		this.stemmed = stemmed;
	}

	public boolean isPriorpolarity() {
		return priorpolarity;
	}

	public void setPriorpolarity(boolean priorpolarity) {
		this.priorpolarity = priorpolarity;
	}

	public String toString() {
		return "emotion=" + emotion + " strong=" + strong + " stemmed="
				+ stemmed + " pripol=" + priorpolarity;
	}
}
